package com.rpc.center;

import com.rpc.center.entity.configure.RegisterCenterConfigure;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppBeans {
    @Bean
    public RegisterCenterConfigure configure(){
        RegisterCenterConfigure configure = new RegisterCenterConfigure();
        configure.setAddress("127.0.0.1");
        configure.setPort(9000);
        configure.setMinPoolSize(5);
        configure.setMaxPoolSize(20);
        return configure;
    }
}
